const Mock = require('mockjs')
class Result {
  constructor(data = {}, code = 200, msg = '成功') {
    this.data = data
    this.code = code
    this.msg = msg
  }
}
Mock.mock('/login', 'post', () => {
  const data = {
    token: '123',
  }
  return new Result(data)
})
